package org.intrasearch.core.io;

import java.io.IOException;
import java.io.ObjectInput;
import java.io.ObjectOutput;

public class StringExternalizableProvider implements ExternalizableProvider<String>
{
    public void writeExternal(String object, ObjectOutput output) throws IOException
    {
        output.writeUTF(object);
    }

    public String readExternal(ObjectInput input) throws IOException
    {
        return input.readUTF();
    }
}
